<!--
 * @description: 描述
 * @Author: 问道师兄木木木
 * @Date: 2021-01-29 19:18:47
 * @LastEditors: liukesen
 * @LastEditTime: 2021-01-30 20:04:21
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学习typescript</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .wrap{
            width: 100vw;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .wrap .con-animation{
            position: relative;
            width: 330px;
            height: 100px;
            display: flex;
            justify-content: space-between;
        }
        .wrap .con-animation>div{
            position: absolute;
            width: 100px;
            height: 100px;
            border-radius: 51%;
            background-color: #000;
            transform-origin: center center;
            animation: ca_item_radius forwards infinite 1s;
        }
        .wrap .con-animation .ca_item1{
            left:0;
            animation-timing-function:cubic-bezier(0.42,0,0.58,1);
        }
        .wrap .con-animation .ca_item2{
            left:110px;
            animation-timing-function:cubic-bezier(0.42,0,0.58,1);
        }
        .wrap .con-animation .ca_item3{
            left:220px;
            animation-timing-function:cubic-bezier(0.42,0,0.58,1);
        }

        @keyframes ca_item_radius{
            0%{
                transform: scale(0);
            }
            50%{
                transform: scale(1);
            }
            100%{
                transform: scale(0);
            }
        }
    </style>
</head>
<body>
    <div class="wrap">
        <div class="con-animation">
            <div class="ca_item1"></div>
            <div class="ca_item2"></div>
            <div class="ca_item3"></div>
        </div>
        
    </div>
    <script src="./index1.js"></script>
</body>
</html>